hvmloader: Advertise ECC memory in SMBIOS tables.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 25 Nov 2009 14:04:46 +0000 (14:04 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 25 Nov 2009 14:04:46 +0000 (14:04 +0000)
Microsoft's Windows logo certified hardware requires ECC; since the
SVVP certification runs the same test on the guest, Xen domains will
currently fail it.

From: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/firmware/hvmloader/smbios.c

index a5237cc81e040c8846ab4875f0422195a16bd180..bd9e3f77bcb5514bcb1f36d6a4aa50904830bf0e 100644 (file)
@@ -455,7 +455,7 @@ smbios_type_16_init(void *start, uint32_t memsize, int nr_mem_devs)
     
     p->location = 0x01; /* other */
     p->use = 0x03; /* system memory */
-    p->error_correction = 0x01; /* other */
+    p->error_correction = 0x06; /* Multi-bit ECC to make Microsoft happy */
     p->maximum_capacity = memsize * 1024;
     p->memory_error_information_handle = 0xfffe; /* none provided */
     p->number_of_memory_devices = nr_mem_devs;